;(function() {

    let myChart = echarts.init(document.querySelector('.box-r1'))

    let option = {
        
        polar: {
          radius: [30, '80%']
        },
        angleAxis: {
          max: 4,
          startAngle: 75
        },
        radiusAxis: {
          type: 'category',
          data: ['a', 'b', 'c', 'd']
        },
        tooltip: {},
        series: {
          type: 'bar',
          data: [2, 1.2, 2.4, 3.6],
          coordinateSystem: 'polar',
          label: {
            show: true,
            position: 'middle',
            formatter: '{b}: {c}'
          }
        }
      };

myChart.setOption(option)
//缩放改变大小
window.addEventListener('resize', () => {
    myChart.resize()
})
})()